import { eventHandler } from "h3";

export default eventHandler((event) => {
  return {
    message: "这是根索引路由 index.ts",
    description: "只处理根路径 '/' 的请求",
    path: event.node.req.url,
    type: "index route",
    note: "如果存在 index.ts，它会覆盖 [...].ts 对根路径的处理",
    scope: "仅匹配: /",
  };
});
